package org.chaos.service;

import org.chaos.mappers.AdminUserMapper;
import org.chaos.model.AdminUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminService {
    @Resource
    private AdminUserMapper adminUserMapper;

    public AdminUser getAdminUser(String userId) {
        return adminUserMapper.selectByPrimaryKey(userId);
    }

    public void addAdminUser(AdminUser adminUser) {
        adminUserMapper.insert(adminUser);
    }

}
